package cn.itsource.pethome.system.user.service;

import cn.itsource.pethome.system.atools.registerAndLogin.domain.EmailRegister;
import cn.itsource.pethome.system.atools.registerAndLogin.domain.PhoneRegister;
import cn.itsource.pethome.system.user.domain.User;
import cn.itsource.pethome.base.service.IBaseService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itsource
 * @since 2023-01-12
 */
public interface IUserService extends IBaseService<User> {

    //手机号注册
    Long add(PhoneRegister register);

    //邮箱注册
    void add(EmailRegister register)throws Exception;

    //查询该手机号是否已经被注册
    User findByPhone(String phone);

    //查询该手机号是否已经被注册
    User findByEmail(String email);
}
